package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "doctor_pharmacist")
public class Pharmacist implements Serializable {

	private static final long serialVersionUID = 6881912495222951874L;
	@Id
	@Column(name = "dc_id_bigint", columnDefinition = "bigint(20)")
	private Long dcId;
	@Column(name = "open_id_nvarchar", columnDefinition = "varchar(255)")
	private String openId;
	@Column(name = "union_id_nvarchar", columnDefinition = "varchar(255)")
	private String unionId;
	@Column(name = "user_name_nvarchar", columnDefinition = "varchar(255) comment '创建医生时，与手机号相同'")
	private String userName;
	@Column(name = "depart_id_bigint", columnDefinition = "bigint(20)")
	private Long departId;
	@Column(name = "name_nvarchar", columnDefinition = "varchar(255)")
	private String name;
	@Column(name = "head_nvarchar", columnDefinition = "varchar(255)")
	private String head;
	@Column(name = "phone_nvarchar", columnDefinition = "varchar(255)")
	private String phone;
	@Column(name = "intro_nvarchar", columnDefinition = "varchar(255)")
	private String intro;
	@Column(name = "title_nvarchar", columnDefinition = "varchar(255) comment '例：主任医师'")
	private String title;
	@Column(name = "certificate_img_nvarchar", columnDefinition = "varchar(255)")
	private String certificateImg;
	@Column(name = "certificate_code_nvarchar", columnDefinition = "varchar(255)")
	private String certificateCode;
	@Column(name = "is_online_bit", columnDefinition = "tinyint(1)")
	private Boolean isOnline;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
	@Column(name = "disable_bit", columnDefinition = "tinyint(1)")
	private Boolean disable;
	@Column(name = "code_nvarchar", columnDefinition = "varchar(255)")
	private String code;
	@Column(name = "code_time_datetime", columnDefinition = "datetime(3)")
	private Date codeTime;
	@Column(name = "z_prescription_bit", columnDefinition = "tinyint(1)")
	private Integer zPrescription;
	@Column(name = "x_prescription_bit", columnDefinition = "tinyint(1)")
	private Integer xPrescription;
	@Column(name = "is_examine_bit", columnDefinition = "tinyint(1)")
	private Boolean isExamine;
	@Column(name = "card_num_nvarchar", columnDefinition = "varchar(20)")
	private String cardNum;
	@Column(name = "ca_code_nvarchar", columnDefinition = "varchar(255)")
	private String caCode;
}
